package com.redisMq.consumer.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
public class ConsumerController {


    @GetMapping("")
    public String Index() {
        return "Index";
    }


    @PostMapping("getReceivingQuantity")
    @ResponseBody
    public Map<String, Object> getReceivingQuantity() {
        Map<String, Object> map = new HashMap<>();
        map.put("wlx", WlxMessageListener.getReceivingQuantity());
        map.put("abcdef", AbcDefMessageListener.getReceivingQuantity());
        return map;
    }

}
